package com.bl.student.dao.repository;

import com.bl.student.dao.model.TeacherStudentEntity;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by liangweikang on 18/2/11.
 */
public interface TeacherStudentRepository extends JpaRepository<TeacherStudentEntity, String> {

    List<TeacherStudentEntity> findByStudentId(String studentId);

    List<TeacherStudentEntity> findByTeacherId(String teacherId);

    Page<TeacherStudentEntity> findByTeacherId(String teacherId, Pageable pageable);
}